package com.sanyang.logistics.zhd.mapper;

import java.util.List;

import com.sanyang.logistics.pojo.DriverDim;
import com.sanyang.logistics.pojo.OwnerTypeDim;
import com.sanyang.logistics.pojo.Product;
import com.sanyang.logistics.pojo.Schedule;
import com.sanyang.logistics.pojo.ThirdParty;
import com.sanyang.logistics.pojo.TruckDim;

public interface ScheduleMapper {
	
	/**
	 * 查询所有调度信息
	 * @return
	 */
	public List<Schedule> getAllSchedule();
	
	
	/**
	 * 查询车辆信息
	 */
	public List<TruckDim> getAllTruck(TruckDim truckDim);
	
	/**
	 * 查询车辆类型下拉框
	 */
	public List<TruckDim> getAllTrucktype();
	
	
	/**
	 * 查询所有类型下拉框
	 */
	public List<OwnerTypeDim> getAllOname();
	
	
	/**
	 * 查询司机信息
	 */
	public List<DriverDim> getDriver(DriverDim driverDim);
	
	
	/**
	 * 查询承运商
	 */
	public List<ThirdParty> getAllThirdParty(ThirdParty thirdParty);
	
	
	/**
	 * 指定车辆查询
	 */
	public TruckDim selectOneCar(Integer truck_id);
	
	/**
	 * 添加调度信息
	 */
	public void addSchedule(Schedule schedule);
	
	/**
	 * 删除调度信息
	 */
	public void delSchedule(Integer sched_id);
	
	/**
	 * 查询单个车辆
	 */
	public List<TruckDim> upSelectOneCar(Integer truck_id);
	
	/**
	 * 查询单个司机
	 */
	public List<DriverDim> upSelectOneDriver(Integer driver_id);
	
	/**
	 * 查询单个承运商
	 */
	public List<ThirdParty> upSelectOneCarrier(Integer third_party_id);
	
	/**
	 * 查询详细货物
	 */
	public List<Schedule> getAllPro(Schedule schedule);
	
	/**
	 * 查询指定货物
	 */
	public List<Schedule> upSelectOnePro(Integer sched_id);
	
	
	
	
}
